package com.zmx.user.api;

import com.zmx.user.dto.MemberDto;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Description: 用户服务对外接口
 * @ClassName: MemberApi
 * @Author zhaomxr
 * @Date 2022-01-05 14:41
 */
@Api(value = "用户服务对外接口")
@RequestMapping("member")
public interface MemberApi {

    @ApiOperation(value = "根据微信openid取用户信息", tags = "根据微信openid取用户信息")
    @GetMapping("findByOpenid")
    public MemberDto findByOpenid(@RequestParam(value = "openid", required = true) String openid);

    @ApiOperation(value = "根据memberId取用户信息", tags = "根据memberId取用户信息")
    @GetMapping("findByMemberId")
    public MemberDto findByMemberId(@RequestParam(value = "memberId", required = true) Long memberId);
}
